if result~="POWER SUPPLY" & result ~="GROUND" then do
'GETREF(O)'
if result=0 then do
'MARK(O):REQUEST("Warning: object 'i'"+CHR(10)+"("+PARTNAME(O)+")"+CHR(10)+"located in "+STR(COL(O))+" "+STR(LINE(O))+CHR(10)+"have no reference"+CHR(10)+"Do you want to continue?")'
if result<1 then do
'UNLOCK(-1)'
return
end
'UNMARKCOMP(O)'
errrefs=errrefs+1
end
end
end
end
'UNLOCK(-1)'
return
test_valeurs:
'LOCK(-1):TITLE("Checking values..."):UNMARK(-1)'
do i=1 to objets
'TYPE(O='i')'
if result=1 then do
'PARTNAME(O)'
if result~="POWER SUPPLY" & result ~="GROUND" then do
'GETVAL(O)'
if result=0 then do
'MARK(O):REQUEST("Warning: object 'i'"+CHR(10)+"("+PARTNAME(O)+")"+CHR(10)+"located in "+STR(COL(O))+" "+STR(LINE(O))+CHR(10)+"have no value"+CHR(10)+"Do you want to continue?")'
'MARK(O,D):MESSAGE("Warning: reference"+CHR(10)+READTEXT(GETREF(O))+CHR(10)+"is used twice!")'
end
end
if i>=objets-1 then i=0
else i=i+1
end
end
'UNLOCK(-1)'
return
test_connexions:
'LOCK(-1):TITLE("Checking junctions to components..."):UNMARK(-1)'
i=1
do while i>0
'O=FINDOBJ('i',1,-1,-1)'; i=result
if i>0 then do
'PARTNAME(O)'
'DEVPINS(O)'; j=result
do k=1 to j
if connexion_broche(i,k)=0 then do
'MARK(O):REQUEST("Warning object 'i'"+CHR(10)+"("+PARTNAME(O)+")"+CHR(10)+"located in "+STR(COL(O))+" "+STR(LINE(O))+CHR(10)+"have his pin "+STR(IF(PINNUM(O,'k'),PINNUM(O,'k'),'k'))+" not connected"+CHR(10)+"Do you want to continue?")'